<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>Docs For Class Teeple_FileUpload</title>
	<link rel="stylesheet" type="text/css" id="layout" href="../media/layout.css" media="screen">
	<link rel="stylesheet" type="text/css" href="../media/style.css" media="all">
	<link rel="stylesheet" type="text/css" href="../media/print.css" media="print">
</head>

<body>
<div id="header">
	<div id="navLinks">
        
                                    
                                                                                        	        [ <a href="../classtrees_teeple.html">Class Tree: teeple</a> ]
            [ <a href="../elementindex_teeple.html">Index: teeple</a> ]
        		[ <a href="../elementindex.html">All elements</a> ]		
	</div>
	<div id="packagePosition">
		<div id="packageTitle2">teeple</div>
		<div id="packageTitle">teeple</div>
		<div id="elementPath"> &middot; </div>
	</div>
</div>

<div id="nav" class="small">
	<div id="packages">
		Packages:
					<p><a href="../li_teeple.html">teeple</a></p>
					<p><a href="../li_teeple-converter.html">teeple-converter</a></p>
					<p><a href="../li_teeple-filter.html">teeple-filter</a></p>
					<p><a href="../li_teeple-validator.html">teeple-validator</a></p>
			</div>

				<div id="index">
			<div id="files">
								Files:<br>
								<a href="../teeple/_ActionBase.php.html">		ActionBase.php
		</a><br>
			<a href="../teeple/_ActionChain.php.html">		ActionChain.php
		</a><br>
			<a href="../teeple/_ActiveRecord.php.html">		ActiveRecord.php
		</a><br>
			<a href="../teeple/_Bean.php.html">		Bean.php
		</a><br>
			<a href="../teeple/_ConfigUtils.php.html">		ConfigUtils.php
		</a><br>
			<a href="../teeple/_Container.php.html">		Container.php
		</a><br>
			<a href="../teeple/_Controller.php.html">		Controller.php
		</a><br>
			<a href="../teeple/_Converter.php.html">		Converter.php
		</a><br>
			<a href="../teeple/_ConverterManager.old.php.html">		ConverterManager.old.php
		</a><br>
			<a href="../teeple/_ConverterManager.php.html">		ConverterManager.php
		</a><br>
			<a href="../teeple/_DataSource.php.html">		DataSource.php
		</a><br>
			<a href="../teeple/_DBConn.php.html">		DBConn.php
		</a><br>
			<a href="../teeple/_DevHelper.php.html">		DevHelper.php
		</a><br>
			<a href="../teeple/_EntityGenerator.php.html">		EntityGenerator.php
		</a><br>
			<a href="../teeple/_ErrorHandler.php.html">		ErrorHandler.php
		</a><br>
			<a href="../teeple/_Exception.php.html">		Exception.php
		</a><br>
			<a href="../teeple/_FileUpload.php.html">		FileUpload.php
		</a><br>
			<a href="../teeple/_FileUtil.php.html">		FileUtil.php
		</a><br>
			<a href="../teeple/_Filter.php.html">		Filter.php
		</a><br>
			<a href="../teeple/_FilterChain.php.html">		FilterChain.php
		</a><br>
			<a href="../teeple/_misc---generateentity.php.html">		generateentity.php
		</a><br>
			<a href="../teeple/_GlobalConfig.php.html">		GlobalConfig.php
		</a><br>
			<a href="../teeple/_Request.php.html">		Request.php
		</a><br>
			<a href="../teeple/_Resource.php.html">		Resource.php
		</a><br>
			<a href="../teeple/_Response.php.html">		Response.php
		</a><br>
			<a href="../teeple/_Session.php.html">		Session.php
		</a><br>
			<a href="../teeple/_Smarty4Maple.php.html">		Smarty4Maple.php
		</a><br>
			<a href="../teeple/_Token.php.html">		Token.php
		</a><br>
			<a href="../teeple/_Transaction.php.html">		Transaction.php
		</a><br>
			<a href="../teeple/_TransactionManager.php.html">		TransactionManager.php
		</a><br>
			<a href="../teeple/_Util.php.html">		Util.php
		</a><br>
			<a href="../teeple/_Validator.php.html">		Validator.php
		</a><br>
			<a href="../teeple/_ValidatorManager.php.html">		ValidatorManager.php
		</a><br>
				</div>
			<div id="interfaces">
							</div>
			<div id="classes">
				Classes:<br>
								<a href="../teeple/TeepleActiveRecordException.html">		TeepleActiveRecordException
		</a><br>
			<a href="../teeple/Teeple_ActionBase.html">		Teeple_ActionBase
		</a><br>
			<a href="../teeple/Teeple_ActionChain.html">		Teeple_ActionChain
		</a><br>
			<a href="../teeple/Teeple_ActiveRecord.html">		Teeple_ActiveRecord
		</a><br>
			<a href="../teeple/Teeple_Bean.html">		Teeple_Bean
		</a><br>
			<a href="../teeple/Teeple_ConfigUtils.html">		Teeple_ConfigUtils
		</a><br>
			<a href="../teeple/Teeple_Container.html">		Teeple_Container
		</a><br>
			<a href="../teeple/Teeple_Controller.html">		Teeple_Controller
		</a><br>
			<a href="../teeple/Teeple_Converter.html">		Teeple_Converter
		</a><br>
			<a href="../teeple/Teeple_ConverterManager.html">		Teeple_ConverterManager
		</a><br>
			<a href="../teeple/Teeple_ConverterManagerOld.html">		Teeple_ConverterManagerOld
		</a><br>
			<a href="../teeple/Teeple_DataSource.html">		Teeple_DataSource
		</a><br>
			<a href="../teeple/Teeple_DBConn.html">		Teeple_DBConn
		</a><br>
			<a href="../teeple/Teeple_DevHelper.html">		Teeple_DevHelper
		</a><br>
			<a href="../teeple/Teeple_EntityGenerator.html">		Teeple_EntityGenerator
		</a><br>
			<a href="../teeple/Teeple_ErrorHandler.html">		Teeple_ErrorHandler
		</a><br>
			<a href="../teeple/Teeple_Exception.html">		Teeple_Exception
		</a><br>
			<a href="../teeple/Teeple_FileUpload.html">		Teeple_FileUpload
		</a><br>
			<a href="../teeple/Teeple_FileUtil.html">		Teeple_FileUtil
		</a><br>
			<a href="../teeple/Teeple_Filter.html">		Teeple_Filter
		</a><br>
			<a href="../teeple/Teeple_FilterChain.html">		Teeple_FilterChain
		</a><br>
			<a href="../teeple/Teeple_GlobalConfig.html">		Teeple_GlobalConfig
		</a><br>
			<a href="../teeple/Teeple_Request.html">		Teeple_Request
		</a><br>
			<a href="../teeple/Teeple_Resource.html">		Teeple_Resource
		</a><br>
			<a href="../teeple/Teeple_Response.html">		Teeple_Response
		</a><br>
			<a href="../teeple/Teeple_Session.html">		Teeple_Session
		</a><br>
			<a href="../teeple/Teeple_Smarty4Maple.html">		Teeple_Smarty4Maple
		</a><br>
			<a href="../teeple/Teeple_Token.html">		Teeple_Token
		</a><br>
			<a href="../teeple/Teeple_Transaction.html">		Teeple_Transaction
		</a><br>
			<a href="../teeple/Teeple_TransactionManager.html">		Teeple_TransactionManager
		</a><br>
			<a href="../teeple/Teeple_Util.html">		Teeple_Util
		</a><br>
			<a href="../teeple/Teeple_Validator.html">		Teeple_Validator
		</a><br>
			<a href="../teeple/Teeple_ValidatorManager.html">		Teeple_ValidatorManager
		</a><br>
				</div>
		</div>
	</div>

<div id="body">
	    		<h1>Class: Teeple_FileUpload</h1>
	<p style="margin: 0px;">Source Location: /FileUpload.php</p>
	

<div class="leftcol">
	<h3><a href="#class_details">Class Overview</a> <span class="smalllinenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a23">23</a>]</span></h3>
	<div id="classTree"><pre></pre>
</div>
	<div class="small">
	<p>FileUpload関連の処理を行う（複数アップロード対応版）</p>
		<h4>Author(s):</h4>
	<ul>
			</ul>
	<h4>Version:</h4>
	<ul>
			</ul>

	<h4>Copyright:</h4>
	<ul>
			</li>
	</div>
</div>

<div class="middlecol">
	<h3><a href="#class_vars">Variables</a></h3>
	<ul class="small">
			</ul>
	<h3><a href="#class_consts">Constants</a></h3>
	<ul class="small">
			</ul>
</div>
<div class="rightcol">
	<h3><a href="#class_methods">Methods</a></h3>
	<ul class="small">
				<li><a href="../teeple/Teeple_FileUpload.html#method__construct">__construct</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodcheckFilesize">checkFilesize</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodcheckMimeType">checkMimeType</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodcount">count</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetError">getError</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetFilemode">getFilemode</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetFilesize">getFilesize</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetMimeType">getMimeType</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetName">getName</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetOriginalName">getOriginalName</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodgetTmpName">getTmpName</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodmove">move</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodsetFilemode">setFilemode</a></li>
				<li><a href="../teeple/Teeple_FileUpload.html#methodsetName">setName</a></li>
			</ul>
</div>

<div id="content">
<hr>
	<div class="contents">
	</div>

	<div class="leftCol">
    	<h2>Inherited Variables</h2>
		<h2>Inherited Constants</h2>
		</div>

	<div class="rightCol">
	<h2>Inherited Methods</h2>
		</div>
	<br clear="all">
	<hr>

	<a name="class_details"></a>
	<h2>Class Details</h2>
	<p align="center"><strong>FileUpload関連の処理を行う（複数アップロード対応版）
</strong></p>
	<p class="small" style="color: #334B66;">[ <a href="#top">Top</a> ]</p>

	<hr>
	<a name="class_vars"></a>
	<h2>Class Variables</h2>
	
	<hr>
	<a name="class_methods"></a>
	<h2>Class Methods</h2>
	
	<a name="method__construct"></a>
	<p></p>
	<h3>__construct</h3>
	<div class="indent">
		<p>
		<code>Teeple_FileUpload __construct(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a47">47</a>]</p>
		<p align="center"><strong>コンストラクター
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodcheckFilesize"></a>
	<p></p>
	<h3>checkFilesize</h3>
	<div class="indent">
		<p>
		<code>array[boolean] checkFilesize(
array
$size_list)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a276">276</a>]</p>
		<p align="center"><strong>ファイルサイズが指定されたサイズ以下かどうか？
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - ファイルサイズが指定されたサイズ以下かどうか？の配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
			<li>
		<span class="type">array</span>
		<b>$size_list</b> 
		- 
		基準となるファイルサイズの配列</li>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodcheckMimeType"></a>
	<p></p>
	<h3>checkMimeType</h3>
	<div class="indent">
		<p>
		<code>array[boolean] checkMimeType(

$type_list, array
$type)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a245">245</a>]</p>
		<p align="center"><strong>指定されたMIME型になっているか？
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - 指定されたMIME型になっているか？の配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
			<li>
		<span class="type">array</span>
		<b>$type</b> 
		- 
		MIME型の配列</li>
			<li>
		<span class="type"></span>
		<b>$type_list</b> 
		- 
		</li>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodcount"></a>
	<p></p>
	<h3>count</h3>
	<div class="indent">
		<p>
		<code>integer count(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a108">108</a>]</p>
		<p align="center"><strong>アップロードされた数を返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - アップロードされた数</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetError"></a>
	<p></p>
	<h3>getError</h3>
	<div class="indent">
		<p>
		<code>array getError(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a220">220</a>]</p>
		<p align="center"><strong>ファイルアップロードに関するエラーコードを返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - ファイルアップロードに関するエラーコードの配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetFilemode"></a>
	<p></p>
	<h3>getFilemode</h3>
	<div class="indent">
		<p>
		<code>integer getFilemode(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a84">84</a>]</p>
		<p align="center"><strong>ファイル移動後のファイルのモードを返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - ファイルのモード</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetFilesize"></a>
	<p></p>
	<h3>getFilesize</h3>
	<div class="indent">
		<p>
		<code>array getFilesize(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a172">172</a>]</p>
		<p align="center"><strong>アップロードされたファイルのバイト単位のサイズを返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - ファイルのサイズの配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetMimeType"></a>
	<p></p>
	<h3>getMimeType</h3>
	<div class="indent">
		<p>
		<code>array getMimeType(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a148">148</a>]</p>
		<p align="center"><strong>ファイルのMIME型を返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - ファイルのMIME型の配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetName"></a>
	<p></p>
	<h3>getName</h3>
	<div class="indent">
		<p>
		<code>string getName(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a60">60</a>]</p>
		<p align="center"><strong>フォームで指定したフィールド名を返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - フィールド名</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetOriginalName"></a>
	<p></p>
	<h3>getOriginalName</h3>
	<div class="indent">
		<p>
		<code>array getOriginalName(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a124">124</a>]</p>
		<p align="center"><strong>クライアントマシンの元のファイル名を返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - クライアントマシンの元のファイル名の配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodgetTmpName"></a>
	<p></p>
	<h3>getTmpName</h3>
	<div class="indent">
		<p>
		<code>array getTmpName(
)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a196">196</a>]</p>
		<p align="center"><strong>テンポラリファイルの名前を返却
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - テンポラリファイルの名前の配列</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodmove"></a>
	<p></p>
	<h3>move</h3>
	<div class="indent">
		<p>
		<code>boolean move(

$id, strint
$dest, strint
$name)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a308">308</a>]</p>
		<p align="center"><strong>指定されたパスへファイルを移動(one file)
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>return</b> - 移動に成功したかどうか</li>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
			<li>
		<span class="type">strint</span>
		<b>$name</b> 
		- 
		移動元のファイルの索引番号</li>
			<li>
		<span class="type">strint</span>
		<b>$dest</b> 
		- 
		移動先のファイル名</li>
			<li>
		<span class="type"></span>
		<b>$id</b> 
		- 
		</li>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodsetFilemode"></a>
	<p></p>
	<h3>setFilemode</h3>
	<div class="indent">
		<p>
		<code>void setFilemode(
integer
$filemode)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a96">96</a>]</p>
		<p align="center"><strong>ファイル移動後のファイルのモードをセット
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
			<li>
		<span class="type">integer</span>
		<b>$filemode</b> 
		- 
		ファイルのモード</li>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
	<a name="methodsetName"></a>
	<p></p>
	<h3>setName</h3>
	<div class="indent">
		<p>
		<code>void setName(
string
$name)</code>
		</p>
	
		<p class="linenumber">[line <a href="../__filesource/fsource_teeple__FileUpload.php.html#a72">72</a>]</p>
		<p align="center"><strong>フォームで指定したフィールド名をセット
</strong></p>
<h4>Tags:</h4>
<ul>
	<li><b>since</b> - 3.1.0</li>
	<li><b>access</b> - public</li>
</ul>
		
	
	<h4>Parameters:</h4>
	<ul>
			<li>
		<span class="type">string</span>
		<b>$name</b> 
		- 
		フィールド名</li>
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>

	<hr>
	<a name="class_consts"></a>
	<h2>Class Constants</h2>
	</div>
	<div id="credit">
		<hr>
		Documentation generated on Mon, 26 Apr 2010 08:59:45 +0900 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
	</div>
</div>
</body>
</html>